package com.cuijq.ms.Interpreterdesign.v3;

import java.util.Map;

/**
 * @author by CuiJQ
 * @Classname AlertRuleInterpreter
 * @Description AlertRuleInterpreter Description
 * @Date 2021/5/31 15:38
 */
public class AlertRuleInterpreter {

  private Expression expression;

  public AlertRuleInterpreter(String ruleExpression) {
    this.expression = new OrExpression(ruleExpression);
  }

  public boolean interpret(Map stats) {
    return expression.interpret(stats);
  }
}
